package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.ProductCustomFieldListRowHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/productCustomFieldListRow", r.somsHandler.ListProductCustomFieldListRow())
	group.GET("/productCustomFieldListRow/:id", r.somsHandler.GetProductCustomFieldListRow())
	group.PUT("/productCustomFieldListRow", r.somsHandler.AddProductCustomFieldListRow())
	group.POST("/productCustomFieldListRow/:id", r.somsHandler.EditProductCustomFieldListRow())
	group.DELETE("/productCustomFieldListRow/:id", r.somsHandler.DeleteProductCustomFieldListRow())
	group.POST("/batchDeleteProductCustomFieldListRow", r.somsHandler.BatchDeleteProductCustomFieldListRow())
}